const ejs = require('ejs');

ejs.renderFile('./view/1.ejs',{
    name:'zhangsan',
    json:{arr:[
        {user:'zhangsan',pwd:123},
        {user:'lisi',pwd:456},
        {user:'wuwang',pwd:789}
    ]}
},function(err,data){
    console.log(data);
});